package com.eat.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 自定义定时任务类
 */
@Component
@Slf4j
public class MyTask {

//    @Scheduled(cron = "0 0 1 * * ?")
    public void task(){
        log.info("{}",new Date());
    }

}
